﻿
namespace SHomeWorkshop.LunarPresentation.Commands
{
    public partial class Command
    {
        /// <summary>
        /// 将选中公式定位（尽可能）到主编辑区左上角。
        /// </summary>
        public static void LocateExpressionToTopAndLeft()
        {
            if (Globals.selectedEditor != null && Globals.selectedEditor.SelectedExpression != null)
            {
                Globals.TryToShowExpressionAtTopLeft(Globals.selectedEditor.SelectedExpression);
            }
        }
    }
}
